package com.example.demo.module;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Author:lgl
 * @Description:
 * @Date:Create in 2017/6/17 .
 */
@Data
@ToString
@NoArgsConstructor
public class UserThirdBean implements Serializable {
	private static final long serialVersionUID = 4342547821323449695L;

	private String id;

	private int loginType; //1微信 2微博 3qq

	private String openId;

	private String nickName;

	private String headPhoto;

	private String accessToken;

	private String userId;
	
	public UserThirdBean(String id, int loginType, String openId, String nickName, String headPhoto) {
		this.id = id;
		this.loginType = loginType;
		this.openId = openId;
		this.nickName = nickName;
		this.headPhoto = headPhoto;
	}

	public UserThirdBean(String id, int loginType, String openId, String nickName, String headPhoto, String accessToken) {
		super();
		this.id = id;
		this.loginType = loginType;
		this.openId = openId;
		this.nickName = nickName;
		this.headPhoto = headPhoto;
		this.accessToken = accessToken;
	}

}
